package com.hirain.factory;

/**
 * Created by caicf on 2016/8/27.
 */
public abstract class Factory {

    private Product product;

    protected abstract Product getProductFromFactory();

    public void opeateProduct() {
        System.out.println("对工厂生产的产品进行操作1");
        product=getProductFromFactory();
        System.out.println(product.information());
        System.out.println("对工厂生产的产品进行操作2");
    }

}
